import 'package:json_annotation/json_annotation.dart';

part 'poetry_author_info_model.g.dart';

@JsonSerializable()
class PoetryAuthorInfoModel {
  int id;

  String authorName;

  String intro;

  String dynasty;

  int dynastyId;

  int collected;

  PoetryAuthorInfoModel(this.id, this.authorName, this.intro, this.dynasty,
      this.dynastyId, this.collected);

  factory PoetryAuthorInfoModel.fromJson(Map<String, dynamic> json) =>
      _$PoetryAuthorInfoModelFromJson(json);

  Map<String, dynamic> toJson() => _$PoetryAuthorInfoModelToJson(this);
}
